package org.donghuan.rms.framework.domain;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.List;

public class RecordFile implements PropertyChangeListener {

	private Long id;
	private String recordFileName;
	private Archive archive;
	private List<RecordPage> recordPages;
	private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(
			this);

	public RecordFile() {
	}

	public RecordFile(String recordFileName) {
		super();
		this.recordFileName = recordFileName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		propertyChangeSupport.firePropertyChange("id", this.id, this.id = id);
	}

	public String getRecordFileName() {
		return recordFileName;
	}

	public void setRecordFileName(String recordFileName) {
		propertyChangeSupport.firePropertyChange("recordFileName",
				this.recordFileName, this.recordFileName = recordFileName);
	}

	public List<RecordPage> getRecordPages() {
		return recordPages;
	}

	public void setRecordPages(List<RecordPage> recordPages) {
		propertyChangeSupport.firePropertyChange("recordPages",
				this.recordPages, this.recordPages = recordPages);
	}

	public Archive getArchive() {
		return archive;
	}

	public void setArchive(Archive archive) {
		propertyChangeSupport.firePropertyChange("archive", this.archive,
				this.archive = archive);
	}

	@Override
	public void propertyChange(PropertyChangeEvent evt) {

	}

}
